using System;
using System.Linq.Expressions;

namespace CloudClipboardSync.MvvmFw
{
    public static class PublicNotifyPropertyChangedImplementation
    {
        public static void NotifyPropertyChanged(this IPublicNotifyPropertyChanged obj, params Expression<Func<object>>[] expressions)
        {
            foreach (var expr in expressions)
                obj.NotifyPropertyChanged(ExpressionUtils.PropertyToString(expr));
        }        
    }
}